package com.song.common.entity;

import lombok.Data;

/**
 * @author TonySong
 * @date 2024/4/27 0027
 * @time 13:37
 */
@Data
public class R<T> {

    private Integer code;
    private String msg;
    private Boolean flag;
    private T data;

    public R() {
    }

    public R(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public R(Integer code, String msg, Boolean flag) {
        this(code, msg);
        this.flag = flag;

    }
    public R(Integer code, String msg, Boolean flag, T data) {
        this(code, msg, flag);
        this.data = data;
    }
}
